<?php

namespace app\school\validate;

use think\Validate;

class OrderValidate extends Validate
{
    protected $rule = [
        'student_name'  => 'require',   
        'parent_name'  => 'require',        
        'phone'  => 'require', 
        'current_school'  => 'require',  
        'pay_type'  => 'require'                                           
    ];
    protected $message = [
        'student_name.require' => '学员名称不能为空',
        'parent_name.require' => '家长名称不能为空',       
        'phone.require' => '电话不能为空',        
        'current_school.require' => '学校名称不能为空',
        'pay_type.require' => '支付方式不能为'       
    ];

    protected $scene = [
//        'add'  => ['user_login,user_pass,user_email'],
//        'edit' => ['user_login,user_email'],
    ];

}